import requests
from config import RunConfig

def 外业验收分页(para):
    response = requests.post(
        url=RunConfig.url + "/field/acceptance/page?page=&perPage=",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 外业详情(para):
    response = requests.get(
        url=RunConfig.url + "field/acceptance/detail?exploitMainId=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response


def 外业验收(para):
    response = requests.post(
        url=RunConfig.url + "/field/acceptance/update",
        headers=RunConfig.headers,
        json=para,
        verify=False
    )
    return response


def 外业下载(para):
    response = requests.get(
        url=RunConfig.url + "field/acceptance/export?exploitMainId=&projectId=",
        headers=RunConfig.headers,
        verify=False
    )
    return response
